/* ==========================================================================
   1. GLOBAL RESET & VARIABLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  /* Color Palette - Green/Nature */
  --primary-green: #4a7e07;
  --dark-green: #1a2f19;
  --olive: #79835B;
  --sand: #AFAB7E;
  --sage: #CBD0BE;
  --light-bg: #F3F4E8;

  /* Color Palette - UI/Teal */
  --primary-teal: #017033;
  --accent-cyan: #40c4cc;
  --text-dark: #333;
  --text-muted: #666;
  --border-light: #e0e0e0;
  --nav-height: 70px;

  /* Color Palette - Soft Blues */
  --navbar-1: #F0F3FA;
  --soft-2: #D5DEEF;
  --soft-3: #B1C9EF;
  --soft-4: #8AAEE0;
  --soft-5: #638ECB;
  --soft-6: #395886;

  /* Color Palette - Navy/Deep Blue */
  --ui-1: #0A1931;
  --nabar: #B3CFE5;
  --ui-3: #4A7FA7;
  --ui-4: #1A3D63;
  --ui-5: #F6FAFD;

  /* Color Palette - Ocean */
  --ocean-1: #001D39;
  --ocean-2: #0A4174;
  --ocean-3: #49769F;
  --ocean-4: #4E8EA2;
  --ocean-5: #6EA2B3;
  --ocean-6: #7BBDE8;
  --ocean-7: #BDD8E9;

  /* Color Palette - Luna */
  --luna-1: #A7EBF2;
  --luna-2: #54ACBF;
  --luna-3: #26658C;
  --luna-4: #023859;
  --luna-5: #011C40;

  /* Color Palette - Forest */
  --font-1: #051F20;
  --font-2: #0B2B26;
  --forest-3: #163832;
  --forest-4: #235347;
  --forest-5: #8EB69B;
  --forest-6: #DAF1DE;

  /* Color Palette - Warm/Earth */
  --font-3: #0D1D25;
  --warm-2: #104C64;
  --warm-3: #C6C6D0;
  --warm-4: #D59D80;
  --warm-5: #C0754D;
  --warm-6: #B6410F;
}

/* ==========================================================================
   2. BASE LAYOUT
   ========================================================================== */
#slide-location {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.main-container {
    background: #F0F3FA;
  width: 100%;
  max-width: 2200px;
  padding: 40px 80px;
  box-sizing: border-box;
}

.section-padding {
  padding: 80px 0;
 
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
}

/* ==========================================================================
   3. HEADER & FILTER CONTROLS
   ========================================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.title-group h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
  color: #011722;
}

.title-group p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  color: #011722;
}

.filter-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  background-color: #191b1e;
  padding: 10px 15px;
  border-radius: 4px;
}

.filter-label {
  font-size: 0.8rem;
  color: #888;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: transparent;
  color: #e0e0e0;
  padding: 10px 15px;
  font-size: 0.9rem;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 130px;
}

.dropbtn::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 10px;
  color: #888;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #262626;
  min-width: 130px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
  z-index: 100;
  border-radius: 4px;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #e0e0e0;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background-color: #333;
}

.dropdown-content.show {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   4. DESTINATION SLIDER
   ========================================================================== */
.slider-section {
  position: relative;
  overflow: visible;
  width: 100%;
}

.slider-container-inner {
  overflow: hidden;
  width: 100%;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.destination-card {
  flex: 0 0 calc(25% - 15px);
  margin-right: 20px;
  box-sizing: border-box;
  background-color: transparent;
  text-align: left;
  transition: opacity 0.4s ease;
}

.card-image {
  color: #011722;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.card-content {
  padding: 15px 0;
  color: #011722;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--forest-1);
}

.card-text {
  font-size: 0.85rem;
  color: var(--forest-1);
  line-height: 1.5;
  margin: 0 0 15px 0;
  height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.learn-more {
  font-size: 0.9rem;
  color: #00e676;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.learn-more::after {
  content: ">";
  font-weight: bold;
  margin-left: 5px;
}

/* Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid #444;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(0, 230, 118, 0.9);
  border-color: #00e676;
}

.arrow-left {
  left: -65px;
}

.arrow-right {
  right: -65px;
}

.slider-arrow::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
}

.slider-arrow.left::before {
  transform: rotate(45deg);
  margin-left: 4px;
}

.slider-arrow.right::before {
  transform: rotate(-135deg);
  margin-right: 4px;
}

/* ==========================================================================
   5. FEATURES SECTION
   ========================================================================== */
.features {
  background: var(--forest-6);
  padding: 80px 8%;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  padding: 30px;
  border-radius: 15px;
  background: var(--light);
  transition: 0.3s;
}

.feature-item:hover {
  background: var(--forest-5);
  color: var(--forest-1);
}

.feature-item i {
  font-size: 2rem;
  color: var(--forest-1);
  margin-bottom: 15px;
  display: block;
}

/* ==========================================================================
   6. TESTIMONIAL SLIDER
   ========================================================================== */
.test-section-outer {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.test-slider-container {
  overflow: hidden;
  width: 100%;
}

.test-wrapper,
#testWrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.test-card {
  flex: 0 0 100%;
  max-width: 100%;
  background: var(--ui-5);
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  transition: 0.3s;
  border: 3px solid var(--ocean-6);
  box-sizing: border-box;
}

.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--ocean-6);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--forest-4);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--ocean-4);
  color: var(--border-light);
}

.btn-prev {
  left: 0;
}

.btn-next {
  right: 0;
}

.review-btn-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn-open-review {
  padding: 15px 40px;
  background: var(--forest-4);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-open-review:hover {
  background: var(--ocean-4);
  color: var(--navbar-1);
  transform: scale(1.05);
}

/* ==========================================================================
   7. MODAL & FORM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 550px;
  padding: 40px;
  border-radius: 25px;
  position: relative;
  text-align: center;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #888;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.modal-form input,
.modal-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  transition: 0.3s;
}

/* Star Rating */
.star-input {
  margin-bottom: 10px;
}

.star-input i {
  font-size: 1.8rem;
  color: #ddd;
  cursor: pointer;
  transition: 0.2s;
  padding: 0 4px;
}

.star-input i.active {
  color: #ffc107;
}

/* Image Preview */
.preview-circle {
  width: 100px;
  height: 100px;
  background: #eee;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent-cyan);
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

/* Error & Success States */
.error-shake {
  animation: shake 0.4s ease;
  border: 2px solid red !important;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

.success-toast {
  position: fixed;
  top: 30px;
  right: -400px;
  background: white;
  padding: 20px 30px;
  border-left: 6px solid var(--luna-2);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-toast.show {
  right: 30px;
}

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
  .main-container {
    padding: 40px 70px;
  }

  .arrow-left {
    left: -55px;
  }

  .arrow-right {
    right: -55px;
  }
}

@media (max-width: 1024px) {
  .test-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (min-width: 769px) {
  .test-card {
    flex: 0 0 calc(33.33% - 20px);
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 30px 50px;
  }

  .header {
    flex-direction: column;
    gap: 15px;
  }

  .title-group h1 {
    font-size: 1.8rem;
  }

  .destination-card {
    flex: 0 0 100%;
    margin-right: 0;
  }

  .slider-arrow {
    width: 35px;
    height: 35px;
    top: 30%;
  }

  .arrow-left {
    left: -42px;
  }

  .arrow-right {
    right: -42px;
  }

  .slider-arrow::before {
    width: 7px;
    height: 7px;
  }

  .test-card {
    flex: 0 0 100%;
    padding: 10px;
  }

  .test-section-outer {
    padding: 0 50px;
  }
}